#ifndef FUR_HELPERS_INCLUDED
#define FUR_HELPERS_INCLUDED

#include "UnityCG.cginc"

struct v2f {
     V2F_POS_FOG;
     float4 color : COLOR0;
     float4 uv : TEXCOORD0;
};

uniform float4 _Color;
uniform float _Min;
uniform float _Max;

v2f VertexProgram (appdata_base v)
{
     v2f o;
     o.pos = mul(glstate.matrix.mvp, v.vertex);     
     o.fog = o.pos.w;
     o.uv = v.texcoord;
     o.color = _Color * (v.vertex.z - _Min) / (_Max - _Min);
     return o;
}

#endif